package com.zhong.bean.invoice.dzfpresult;

import java.math.BigDecimal;

public class OrderDetail {
	private String code; //商品编码（前段显示,用于转换税局商品编码）;
    private String name; //商品名称（前段显示,用于转换税局商品名称）;
	
	private String spbm; //商品编码（税局）;
    private String spmc; //商品名称（税局）;
    private String dw; //计量单位;
    private BigDecimal spsl = new BigDecimal(0); //商品数量;
    private BigDecimal spdj = new BigDecimal(0.00D); //单价;
    private BigDecimal je = new BigDecimal(0.00D); //销售金额(单价 * 数量)
    private BigDecimal discJe = new BigDecimal(0.00D);//折扣金额：销售金额折扣后的金额
    private BigDecimal factJe = new BigDecimal(0.00D);//实际金额：销售金额 - 折扣金额

    private BigDecimal sl = new BigDecimal(0.00D);//税率
    
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getSpbm() {
		return spbm;
	}
	public void setSpbm(String spbm) {
		this.spbm = spbm;
	}
	public String getSpmc() {
		return spmc;
	}
	public void setSpmc(String spmc) {
		this.spmc = spmc;
	}
	public String getDw() {
		return dw;
	}
	public void setDw(String dw) {
		this.dw = dw;
	}
	public BigDecimal getSpsl() {
		return spsl;
	}
	public void setSpsl(BigDecimal spsl) {
		if(spsl == null)
			this.spsl = new BigDecimal(0);
		else
			this.spsl = spsl;
	}
	public BigDecimal getSpdj() {
		return spdj;
	}
	public void setSpdj(BigDecimal spdj) {
		this.spdj = spdj;
		if(spdj == null)
			this.spdj = new BigDecimal(0);
		else
			this.spdj = spdj;
	}
	public BigDecimal getJe() {
		return je;
	}
	public void setJe(BigDecimal je) {
		if(je == null)
			this.je = new BigDecimal(0);
		else
			this.je = je;
	}
	
	public BigDecimal getDiscJe() {
		return discJe;
	}
	public void setDiscJe(BigDecimal discJe) {
		if(discJe == null)
			this.discJe = new BigDecimal(0);
		else
			this.discJe = discJe;
	}
	public BigDecimal getFactJe() {
		return factJe;
	}
	public void setFactJe(BigDecimal factJe) {
		if(factJe == null)
			this.factJe = new BigDecimal(0);
		else
			this.factJe = factJe;
	}
	public BigDecimal getSl() {
		return sl;
	}
	public void setSl(BigDecimal sl) {
		if(sl == null)
			this.sl = new BigDecimal(0);
		else
			this.sl = sl;
	}
}
